<template>
  <div>
    <div>
      <router-link to="/shouye">首页</router-link>
      <router-link to="/fenlei">分类</router-link>
      <router-link to="/dingdan">订单</router-link>
      <router-link to="/wode">我的</router-link>
    </div>
    <div class="div2">
      <span>显示路由切换的页面↓</span>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style>
a {
  margin: 0 5px;
}
div {
  margin: 5px 0;
}
</style>